<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">FEATURES MANAGEMENT :</a>
        </h2>
        <div class="block" >
            <form name="admin-form" action="<?= base_url(); ?>admin/features/feature_insert" method="post">
                <fieldset>
                    <legend>FEATURE : NEW </legend>
                    <?php
                    if ($this->session->flashdata('message')) {
                        $msg = $this->session->flashdata('message');
                        echo '<font color="red">' . $msg . '</font>';
                    }
                    ?> 
                    <div class="field">
                        <label> Feature Name</label>
                        <input type="text" size="50" name="feature" onfocus="if(this.value=='Enter Feature')this.value='';" 
                               onblur="if(this.value=='')this.value='Enter Feature';" value="Enter Feature" />
                        <input type="hidden" name="code" value=" <?= $code; ?>"/>
                        <input type="hidden" name="slno" value=" <?= $this->features_model->get_max_slno($code = NULL); ?>"/>
                        <input type="submit" value="Add Feature " name="insert" />
                    </div>

                </fieldset>
            </form>
        </div>
    </div> <!-- END OF BOX -->

    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">FEATURES LIST</a>
        </h2>

        <div class="block" >
            <fieldset>
                <legend id="red">List :</legend>
                <?php foreach ($feature_list as $feature_list): ?>
                    <form name="update_make" action="<?= base_url(); ?>admin/features/feature_update" method="post">
                        <div class="field">
                            <input type="hidden" size="10" name="feature_id" value="<?= $feature_list->id; ?>" />
                            <input type="hidden" size="10" name="code" value="<?= $feature_list->code; ?>" />
                            <input type="text" size="50" name="specification" value="<?= $feature_list->feature; ?>" />
                            <input type="submit" value="Update" name="update_feature" />
                            <div id="link-button" style="float: right">
                                <a href="<?= base_url(); ?>admin/features/feature_delete/<?= $feature_list->code; ?>/<?= $feature_list->id; ?>" class="link-button"> Delete </a>

                            </div>
                        </div>
                    </form>
                <?php endforeach; ?>

            </fieldset>

        </div>

        <div class="pagination" align="left"> <?php echo $this->pagination->create_links(); ?>  </div>
    </div> <!-- END OF BOX -->


</div>